public class FruitTest {
    public static void main(String[] args) {
        Fruit fruit1 = new apple();
        fruit1.setName("苹果");
        fruit1.setArea("昭通");
        fruit1.setPrice(8);
        System.out.println(fruit1);

        Fruit fruit2 = new Banana();
        fruit2.setName("香蕉");
        fruit2.setArea("广西");
        fruit2.setPrice(3);
        System.out.println(fruit2);


        Fruit fruit3=new mango();
        fruit3.setName("芒果");
        fruit3.setArea("德宏");
        fruit3.setPrice(40);
        System.out.println(fruit3);


    }
}